home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / admin / linuxcon.000 / linuxcon / linuxconf-1.6 / askrunlevel / internal.h < prev    next >
C/C++ Source or Header  |  1995-10-14  |  953b  |  47 lines

  1. #pragma interface
  2. #ifndef INTERNAL_H
  3. #define INTERNAL_H
  4.  
  5. #ifndef MISC_H
  6.     #include "../misc/misc.h"
  7. #endif
  8.  
  9. struct RUNLEVEL {
  10.     char init_runlevel;        // as understood by /sbin/init
  11.     char netconf_runlevel;        // as understood by netconf
  12.                     // 0,1 or 2
  13.     char graphic_level;        // 0: text mode
  14.                     // 1: Graphic mode, workstation
  15.                     // 2: X terminal
  16.     SSTRING title;
  17.     char graphic_err;    // Not available because graphic is
  18.                 // not configured
  19.     char net_err;        // Not available because net is
  20.                 // not configured
  21. };
  22. struct ASK_PARM{
  23.     int timeout;
  24.     int defmode;
  25. };
  26.  
  27. class RUNLEVELS{
  28. public:
  29.     RUNLEVEL tbrun[6];
  30.     SSTRING tbmenu[6];
  31.     /*~PROTOBEG~ RUNLEVELS */
  32. public:
  33.     RUNLEVELS (int graphic_ok, int net_ok);
  34.     void config (void);
  35.     void define (void);
  36. private:
  37.     void parse (const char *str, RUNLEVEL *ptrun);
  38. public:
  39.     void save (void);
  40.     void setlevel (int choice);
  41.     void setmenu (const char *menuopt[]);
  42.     ~RUNLEVELS (void);
  43.     /*~PROTOEND~ RUNLEVELS */
  44. };
  45.  
  46. #endif
  47.